﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;

using ZhimeiSoft.CharmManager.DOL;
using ZhimeiSoft.CharmManager.Server.Factory;
using ZhimeiSoft.CharmManager.Server.BLL.Interface;
using ZhimeiSoft.CharmManager.Server.DAL.Interface;


namespace ZhimeiSoft.CharmManager.Server.BLL
{
    public class ServiceItemDetailBLL : IServiceItemDetailBLL
    {
        IServiceItemDetailDAL detail;
        public ServiceItemDetailBLL()
        {
            detail = BaseDalFactory.CreateServiceItemDetailDal();
        }

        public DataSet QueryServiceItemDetail(int iServiceItemID)
        {
            return detail.QueryServiceItemDetail(iServiceItemID);
        }

        public void DeleteServiceItemDetail(int iServiceItemID)
        {
            detail.DeleteServiceItemDetail(iServiceItemID);
        }

        public void SubmitServiceItmeDetail(DataSet ds)
        {
            detail.SubmitServiceItmeDetail(ds);
        }

        public void InsertServiceItemDetail(DBEntityServiceItemDetail entity)
        {
            detail.InsertServiceItemDetail(entity);
        }

        public void UpdateServiceItemDetail(DBEntityServiceItemDetail entity)
        {
            detail.UpdateServiceItemDetail(entity);
        }

        public void DeleteServiceItemDetailByID(int detailID)
        {
            detail.DeleteServiceItemDetailByID(detailID);
        }

    }
}
